package com.gitee.enums;

/**
 * 日志类型枚举
 *  
 * @author  赵炎
 * @version  [V1.00, 2019年1月8日]
 * @since V1.00
 */
public enum LogType
{
    INSERT(1, "新增"),
    DELETE(2, "删除"),
    UPDATE(3, "修改"),
    LOGIN(4, "登录"),
    LOGOUT(5, "登出"),
    OTHER(6, "其他");
    
    /**
     * 键值
     */
    private int key;
    
    /**
     * 标签
     */
    private String label;
    
    private LogType(int key, String label)
    {
        this.key = key;
        this.label = label;
    }
    
    public void setKey(int key)
    {
        this.key = key;
    }
    
    public int getKey()
    {
        return key;
    }
    
    public void setLabel(String label)
    {
        this.label = label;
    }
    
    public String getLabel()
    {
        return label;
    }
    
}
